﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebStudio.Business.Entity
{ 
    ///<summary>
    /// An object representation of the 'ArticalTB' table. [No description for this table in the database]	
    ///</summary>
    /// <remarks>
    /// </remarks>
    [Serializable]
    public class ArticalEntity
    {
        private UserEntity _userEntity;
        private CategoryEntity _categoryEntity;
        ///<summary>
        /// Initializes a new instance of the <see cref="ArticalEntity"/> class.
        ///</summary>
        public ArticalEntity()
        {
            _userEntity = new UserEntity();
            _categoryEntity = new CategoryEntity();
        }

        #region Public members

        ///<summary>
        /// AddDate
        ///</summary>
        public DateTime AddDate { get; set; }

        ///<summary>
        /// ArticalContent
        ///</summary>
        public String ArticalContent { get; set; }

        ///<summary>
        /// ArticalId
        ///</summary>
        public Int32 ArticalId { get; set; }

        ///<summary>
        /// ArticalImage
        ///</summary>
        public String ArticalImage { get; set; }

        ///<summary>
        /// ArticalTitle
        ///</summary>
        public String ArticalTitle { get; set; }

        ///<summary>
        /// CategoryId
        ///</summary>
        public CategoryEntity CategoryInfo
        {
            get { return _categoryEntity; }
            set { _categoryEntity = value; }
        }

        ///<summary>
        /// CreateUserId
        ///</summary>
        public UserEntity UserInfo 
        {
            get { return _userEntity; }
            set { _userEntity = value; }
        }

        ///<summary>
        /// Status
        ///</summary>
        public Int32 Status { get; set; }

        ///<summary>
        /// UpdateDate
        ///</summary>
        public DateTime UpdateDate { get; set; }

        /// <summary>
        /// 文章类型：热文，推荐或者其他的
        /// </summary>
        public Int32 ArticalType { get; set; }

        /// <summary>
        /// 文章标签
        /// </summary>
        public String ArticalTag { get; set; }

        /// <summary>
        /// ArticalHits
        /// </summary>
        public Int32 ArticalHits { get; set; }

        /// <summary>
        /// 来源
        /// </summary>
        public String ArticalOriginal { get; set; }
        /// <summary>
        /// 内码
        /// </summary>
        public string InnerCode { get; set; }
        /// <summary>
        /// 是否底部
        /// </summary>
        public int IsBottom { get; set; }
        #endregion

    }
}
